package cn.hdufocus.focus_helper.service;

import cn.hdufocus.focus_helper.entity.Reservation;

import java.util.Date;
import java.util.List;

public interface IReservationService {
    List<Reservation> listAll();
    Reservation findById(long id);
    Reservation save(Reservation reservation);
    boolean delete(long id);
    boolean updateStatus(long id,int status);
    boolean updateLinkman(long id,String linkman);
    List<Reservation> listByTime(Date fromTime, Date toTime);
    List<Reservation> listByStatus(int status);
    List<Reservation> listByPhone(String phone);
    List<Reservation> listByStatusBetween(int status1,int status2);
}
